package xyz.xtt.exchange.controller;

import java.util.UUID;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@RestController
@RequestMapping("/api/aop")
public class AopController {
	@GetMapping("/index")
	public ResponseEntity<String> index() {
		String uuid = UUID.randomUUID().toString();
		log.info("/api/aop/index:{}", uuid);
		return ResponseEntity.ok(uuid);
	}

	@GetMapping("/info")
	public ResponseEntity<String> info() {
		String uuid = UUID.randomUUID().toString();
		log.info("/api/aop/info:{}", uuid);
		return ResponseEntity.ok(uuid);
	}
}
